From: Georges Basile Stavracas Neto Date: Mon, 6 Apr 2020 14:19:28 +0000 (-0300) Subject: animation: Set size through CSS X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~684^2^2~523 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=53a24e6ddda7abef309014a0c2fb8957a4f02fb8;p=gnome-shell.git animation: Set size through CSS Pretty much the same case of the previous commit: we want this size to be scale-dependant, and using the width and height properties of ClutterActor doesn't automatically update. Use CSS to set the width and height. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1176 --- diff --git a/js/ui/animation.js b/js/ui/animation.js index 2344851ad..fa8cad932 100644 --- a/js/ui/animation.js +++ b/js/ui/animation.js @@ -15,8 +15,7 @@ class Animation extends St.Bin { const themeContext = St.ThemeContext.get_for_stage(global.stage); super._init({ - width: width * themeContext.scale_factor, - height: height * themeContext.scale_factor, + style: `width: ${width}px; height: ${height}px;`, }); this.connect('destroy', this._onDestroy.bind(this));